<%-- 
    Document   : header
    Created on : Sep 28, 2011, 11:25:51 AM
    Author     : Administrator
--%>

<%@page import="org.hibernate.HibernateException"%>
<%@page import="hibernate.pojo.Khachhang"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Zing Deal | Header</title>
        <link href="DealZing_files/6aad5646.css" rel="stylesheet" type="text/css" />
    </head>

    <body>
        <h1><a href="homecontroller?action=view" class="Logo">Zing Deal</a></h1>
        <div style="position: absolute; top: 10px; left: 210px;" id="province">
            <select name="select" id="DealCitySelect" style="margin-left: 7px;">
                <option class="tp-ho-chi-minh" selected="selected" value="http://deal.zing.vn/tp-ho-chi-minh">TP Hồ Chí Minh</option>
                <option class="thua-thien-hue" value="http://deal.zing.vn/tp-ho-chi-minh">Thừa Thiên Huế</option>
                <option class="can-tho" value="http://deal.zing.vn/tp-ho-chi-minh">Cần Thơ</option>
                <option class="binh-duong" value="http://deal.zing.vn/tp-ho-chi-minh">Bình Dương</option>
                <option class="da-nang" value="http://deal.zing.vn/tp-ho-chi-minh">Đà Nẵng</option>
                <option class="ha-noi" value="http://deal.zing.vn/tp-ho-chi-minh">Hà Nội</option>
                <option class="hai-phong" value="http://deal.zing.vn/tp-ho-chi-minh">Hải Phòng</option>
                <option class="khanh-hoa" value="http://deal.zing.vn/tp-ho-chi-minh">Khánh Hòa</option>
            </select>
        </div>
        <div class="subscriptions subscription-content form clearfix">
            <form onsubmit="return validateSubscriptions();" class="subscription round-10 clearfix" method="post" action="http://click.ad.zing.vn/em/form.php?form=2">
                <fieldset style="display:none;">
                    <input type="hidden" name="_method" value="POST" />
                    <input type="hidden" name="data[_Token][key]" value="c6df345fc7c44a2fad4e5fc90f55bd303eae5e0f" id="Token1721335314" />
                </fieldset>
                <div style="margin-left:20px;">
                    <div class="hide">
                        <div class="input select required">
                            <label for="SubscriptionCityId"></label>
                            <select name="CustomFields[13]" id="SubscriptionCityId">
                                <option value="33">Bình Dương</option>
                                <option value="30">Cần Thơ</option>
                                <option value="40">Đà Nẵng</option>
                                <option value="43">Hà Nội</option>
                                <option value="45">Hải Phòng</option>
                                <option value="48">Khánh Hòa</option>
                                <option value="24">Thừa Thiên Huế</option>
                                <option value="44" selected="selected">TP Hồ Chí Minh</option>
                            </select>
                        </div>
                    </div>
                    <input type="hidden" name="data[Subscription][r]" value="/tp-ho-chi-minh/subscriptions/add/-1" id="SubscriptionR" />
                    <div class="JsOverLabel required">
                        <label for="SubscriptionEmail">Nhập Email để nhận giá tốt</label>
                        <input name="email" type="text" value="" maxlength="255" id="SubscriptionEmail" />
                    </div>
                    <input type="hidden" name="data[Subscription][texttranslate]" id="text-translate-subscription" value="Nhập Email để nhận giá tốt" />
                </div>
                <div class="label-no-see-your-city hide"> <a href="http://deal.zing.vn/tp-ho-chi-minh/city_suggestions/new" title="Đề xuất thành phố">Không nhìn thấy thành phố của bạn?</a> </div>
                <input type="hidden" name="CustomFields[15]" value="0" id="SubscriptionZdUId" />
                <div class="submit">
                    <input type="submit" id="Send" value=" " />
                </div>
                <fieldset style="display:none;">
                    <input type="hidden" name="data[_Token][fields]" value="b95e9df056909fce4f400c0898f71496e9c417d2%3An%3A3%3A%7Bv%3A0%3Bf%3A18%3A%22Fhofpevcgvba.MqHVq%22%3Bv%3A1%3Bf%3A14%3A%22Fhofpevcgvba.e%22%3Bv%3A2%3Bf%3A26%3A%22Fhofpevcgvba.grkggenafyngr%22%3B%7D" id="TokenFields720265034" />
                </fieldset>
            </form>
        </div>
        <div class="Notice">
            <div class="NoticeLeft" style="vertical-align:top;"> <img src="DealZing_files/loa00000.gif" height="23" width="19" alt="" align="left" style="float:left;width:19px;" />&nbsp;&nbsp;
                <ul id="notes-home-page" class="js-hidden">
                    <li> <span>Thông báo dời ngày của chương trình "Vũ Khúc Sôi Động"</span> <span style="padding-left: 10px;"> <a href="http://deal.zing.vn/tp-ho-chi-minh/cms_note/thong-bao-doi-ngay-cua-chuong-trinh-vu-khuc-soi-dong" target="_blank">Chi tiết</a> </span> </li>
                    <li> <span>THÔNG BÁO VỀ VIỆC HOÀN TIỀN VOUCHER XIN CHÀO SHOW VÀ HELIOS COFFEE NGÀY 26/9/2011</span> <span style="padding-left: 10px;"> <a href="http://deal.zing.vn/tp-ho-chi-minh/cms_note/thong-bao-ve-viec-hoan-tien-voucher-xin-chao-show-va-helios-coffee-ngay-2692011" target="">Chi tiết</a> </span> </li>
                    <li> <span>Chúc mừng khách hàng trúng xe máy SYM Joyride EFI ngày 27/9/2011.</span> <span style="padding-left: 10px;"> <a href="http://deal.zing.vn/tp-ho-chi-minh/cms_note/chuc-mung-khach-hang-trung-xe-may-sym-joyride-efi-ngay-2792011" target="">Chi tiết</a> </span> </li>
                </ul>
            </div>
            <div class="NoticeRight hide"> <img src="DealZing_files/icon-thu.jpg" height="26" width="28" alt="" /> <strong class="TextSpace"></strong> </div>
        </div>
        <%
            int t = 1;
            if(request.getParameter("active") != null)
            {
                t = Integer.parseInt(request.getParameter("active"));
            }
            
        %>
        <div class="BoxMenu">
            <ul class="MenuTop">
                <li <% if(t==1) {%>class="Active"<%}%>>
                    <div class="TabMenuTop"> <a href="homecontroller?action=view&amp;active=1"><span>Deal hôm nay </span></a> </div>
                </li>
                <li <% if(t==2) {%>class="Active"<%}%>>
                    <div class="TabMenuTop"> <a href="homecontroller?action=recentdeal&amp;active=2" title="Deal trước đây"><span>Deal trước đây</span></a> </div>
                </li>
                <li <% if(t==3) {%>class="Active"<%}%>>
                    <div class="TabMenuTop"> <a href="homecontroller?action=listevent&amp;active=3" title="Sự Kiện"><span>Sự Kiện</span></a> </div>
                </li>
                <li <% if(t==4) {%>class="Active"<%}%>>
                    <div class="TabMenuTop"> <a href="atmcardcontroller?action=atmrecharge&amp;active=4" title="Nạp tiền"><span>Nạp tiền</span></a> </div>
                </li>
                <li <% if(t==5) {%>class="Active"<%}%>>
                    <div class="TabMenuTop"> <a href="homecontroller?action=payment&amp;active=5" title="Hướng dẫn"><span>Hướng dẫn</span></a> </div>
                </li>
            </ul>

            <%
                try {
                    Khachhang khachhang = (Khachhang) session.getAttribute("KhachHang");
                    if (khachhang == null) {
            %>
            <ul class="Login JsAjaxLoginMenuUser">
                <li><a href="logincontroller?action=login" title="Đăng nhập">Đăng nhập</a> |</li>
                <li><a href="registrationcontroller?action=registration" title="Đăng ký" id="typeReg">Đăng ký</a></li>
                <!--<li><a href="registrationcontroller2?action=registration2" title="Đăng ký" id="typeReg">Đăng ký Google Capcha</a></li>-->
                
            </ul>
            <%} else {
                        String avatar = "images/customer/no-avatar.gif";
                        if(khachhang.getAnhDaiDien()!=null)
                        {
                            avatar = khachhang.getAnhDaiDien();
                        }
            %>
            <ul class="Login JsAjaxLoginMenuUser">
                <li>
                    <img src="<%=avatar%>" class="MiniAvatar JsUserMenu pointer" style="margin: -2px 3px 0pt 0pt;" alt="" align="left" />
                    <a href="javascript:void(0)" class="JsUserMenu" style="font-size: 12px;"><%=khachhang.getHoTen()%></a>
                    <img src="images/customer/icon-down.png" class="JsUserMenu pointer" alt="" />
                </li>
            </ul>
            <div class="userMenuRight hide">
                <ul>
                    <li><a href="customerinfocontroller?action=viewinfo" title="Thông tin cá nhân">Thông tin cá nhân</a></li>
                    <li><a href="listdealboughtcontroller?action=listdealbought" title="Thông tin mua deal">Thông tin mua deal</a></li>
                    <li><a href="logoutcontroller?action=logout" class="logout-link" title="Thoát">Thoát</a></li>
                </ul>
            </div>
            <%
                    }
                } catch (HibernateException ex) {
                    out.println(ex);
                }
            %>    
        </div>
    </body>
</html>